import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import store from '@/store';
import VueI18n from 'vue-i18n'
import messages from '@/locale/index'
Vue.config.productionTip = false

let i18nConfig = {
	locale: 'cn',// 获取已设置的语言
	messages: messages,
	silentTranslationWarn: true
}
Vue.use(VueI18n)
const i18n = new VueI18n(i18nConfig)
App.mpType = 'app'
// 引入全局uView
import uView from "uview-ui";
Vue.use(uView);

const app = new Vue({
	store,
	i18n,
	...App
})
// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
import httpInterceptor from '@/api/http.interceptor.js'
Vue.use(httpInterceptor, app)

// http接口API集中管理引入部分
import httpApi from '@/api/http.api.js'
Vue.use(httpApi, app)
app.$mount()
// #endif
